home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs13.d81
/
atarigm.prg
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2009-10-10
|
10KB
|
337 lines
1 GOTO910
2 REM ** ML STOP KEY DISABLE **
3 PRINT"x[169]=[141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
4 [153]"xhhh+hNOThhhhhhhPRINT#HRUNHX`111"
5 [153]"hhhhhhh`1"
6 [143] ** 4 - POP ML SUBROUTINE **
10 [143] **GENERAL INPUT ROUTINE **
15 :
30 :
35 [143] +++ INPUT SECTION +++
40 [151]UO,0:UR$[178]"":UI$[178]""
42 [139]UL[178]0[167]UL[178]80
45 [153]" CMDCMD";:[151]UC,0
50 [161]UI$:[139]UI$[178]""[167]50
55 [139]UI$[178][199](13)[175][195](UR$)[177][178]1[167][151]UC,1:[153]" CMD";:[137]85
60 [139]UI$[178][199](20)[167]105
62 [139] [195](UR$)[178][177]UL[167]50
65 [141]120:[143] CHECK FOR VALID CHARACTER
70 UR$[178]UR$[170]UI$
75 [153]UI$;
80 [137]50
85 [143] +++ CHECK FOR HELP REQUEST +++
90 [139]UR$[178]UX$[167]195:[143] EXIT TO HELP ROUTINE
95 [139]UF[178]1[167][141]240
100 UF[178]0:[153]:[142]
102 [143] ++ CHECK DELETE ++
105 [139][195](UR$)[179]1[167]50
110 UR$[178][200](UR$,[195](UR$)[171]1)
115 [153]"CMD CMDCMD";:[137]50
120 [143] ++ CHECK FOR VALID CHARACTERS ++
125 [139][195](US$)[178]0[167]150
130 [129]US[178]1[164][195](US$)
135 [139]UI$[178][202](US$,US,1)[167][142]
140 [130]
145 UI$[178]"":[142]
150 [143] ** STANDARD INPUT **
152 [139][198](UI$)[178]46[167][142]
155 [139]UI$[178][199](32)[167][142]
160 [139][198](UI$)[179]48[176][198](UI$)[177]57[167]170
165 [142]
170 [139][198](UI$)[179]65[176][198](UI$)[177]90[167]180
175 [142]
180 [139][198](UI$)[179]193[176][198](UI$)[177]218[167]UI$[178]"":[142]
185 [139][194](UT)[178]UU%[167]UI$[178][199]([198](UI$)[171]128):[142]
187 [142]
190 UI$[178]"":[142]
195 UF[178]1:[143] +++ HELP ROUTINE EXIT +++
197 [141]250
200 [141]245
205 [129]UQ[178]UB[164](U2%[172]256[170]U1%[170]U3%[171]2)
210 UQ%(UQ[171]UB)[178][194](UQ):[130]:[153]"LOAD"
215 UZ[178]1:UV%[178][194](UT)
216 [137]300
217 UZ[178]0:US$[178]UJ$:UG$[178]UK$:UP[178]UJ:UL[178]UK
218 [139][194](50003)[178]0[167][151]53281,1:[153]"LOAD";:[151]53281,6:[151]53280,14:[137]220
219 [153]"LOAD";
220 UT$[178]UL$:[151]UT,UV%:[129]UQ[178]UB[164](U2%[172]256[170]U1%[170]U3%[171]3)
225 [151]UQ,UQ%(UQ[171]UB):[130]
230 [151]U1,U1%
232 [151]U2,U2%
233 [151]U4,U4%
234 [151]U3,U3%[171]1
235 [137]35
240 UD%[178]((U2%[172]256[170]U1%[170]U3%)[171]UB)[173]40:[153][200](UD$,UD%[170]1):[142]
245 [153][200](UD$,24);" HELP COMING WAIT ":[142]
250 U1%[178][194](U1):U2%[178][194](U2):U3%[178][194](U3):U4%[178][194](U4)
251 UJ$[178]US$:UK$[178]UG$:UL$[178]UT$:UJ[178]UP:UK[178]UL
255 [142]
300 [143] ** MENU **
301 :
302 [153]"LOAD":[151]UT,UU%:[139][194](50003)[178]0[167][151]53281,9:[151]53280,8
303 :
305 [153]" MENU"
310 [153]" --------------------------------------"
315 [153]" 1. BEGIN ATARI II "
320 [153]" 2. STUDENT INSTRUCTIONS"
325 [153]" 3. TEACHER INSTRUCTIONS"
335 [153]" 4. QUIT"
340 [153]" --------------------------------------"
345 [153]" PRESS A NUMBER KEY (1-4) ";
350 UL[178]1:US$[178]"1234":[141]35:[143] INPUT ROUTINE
352 US$[178]""
355 [145][197](UR$)[141]1000,400,500,396
360 [137]300
395 [143] ** RE-ENABLE STOP KEY AND END **
396 [139][194](50003)[179][177]1[175][194](50003)[179][177]160[175][194](50003)[179][177]0[167]399
397 [158]UU[170]71:[139][194](50003)[178]0[167][151]53281,6:[151]53280,14
398 [153]"CONTLOAD":[128]
399 [141]875:[142]
400 [143] ** STUDENT INSTRUCTIONS **
405 [153]"LOAD":[151]UT,UU%:[139][194](50003)[178]0[167][151]53281,0:[151]53280,0
410 UT$[178]" ATARI II":UP[178]0:UG$[178]"STUDENT INST":[141]850
412 [153]" <<<<< ATARI II >>>>>"
413 [153]" IN ATARI II THE OBJECT IS TO"
414 [153]" DESTROY AS MANY SPACE SHIPS AS"
415 [153]" POSSIBLE
416 GOSUB835
418 GOSUB850
419 PRINT" SHIP[146] POINTS[146] TYPE[146]"
420 PRINT
421 PRINT" [223][162][162][175][164] 50 STAR CRUISER"
422 PRINT
423 PRINT" >[172][190]> 100 FREIGHTER"
424 PRINT
425 PRINT" >[209][209][209] 150 TANKER"
426 PRINT
427 PRINT" >-[218] 200 STARSHIP"
428 PRINT
429 PRINT" [223]= 250 RAIDER"
430 PRINT
431 PRINT" > 275 ESPIONAGE SHIP"
432 PRINT
433 PRINT" ' 300 ALIEN CRAFT"
434 PRINT
435 PRINT" >=[218] -250 FEDERATION FLAGSHIP":GOSUB835
436 GOSUB850:PRINT" YOU ONLY GET 1[146] TRY FOR EACH PASS"
437 PRINT" TO FIRE PHOTON TORPEDOS USE 7-8-9"
438 PRINT" FOR FIRING AT THESE ANGLES: [205]-[194]-[206]"
440 GOSUB835:GOSUB850
441 PRINT" THE >=[218] IS YOUR[146] SHIP. IF YOU HIT IT,"
442 PRINT" YOU ARE PENALIZED 250[146] POINTS."
443 PRINT" YOU GET 5[146] PLASMA BOMBS"
444 PRINT" WHICH ARE ACTIVATED BY THE P[146] KEY."
445 PRINT" YOU CANNOT USE THEM AGAINST"
446 PRINT" THE ALIEN SHIP."
447 PRINT" ALSO, IF YOU DECIDE TO HAVE THE BARRIER";
448 PRINT" IT RANDOMLY[146] SELECTS BETWEEN TWO TYPES."
449 PRINTTAB(06)"YOU MAY MOVE YOUR TORPEDOES"
450 PRINTTAB(13)"IN MID FLIGHT"
485 GOSUB835
490 IFUZ=1THENSYSUP%:GOTO217
499 RETURN
500 REM ** TEACHER INSTRUCTIONS **
501 PRINT"[147]":POKEUT,UL%:IFPEEK(50003)=0THENPOKE53281,2:POKE53280,10
502 UT$=" [193]TARI [201][201]": UP=0:UG$="[212]EACHER [201]NST":GOSUB850
503 PRINT" [212]O THE BEST OF OUR KNOWLEDGE,"
504 PRINT" THIS PROGRAM IS IN THE PUBLIC"
505 PRINT" DOMAIN. [201]F THIS IS NOT THE CASE"
506 PRINT" PLEASE CONTACT:"
507 PRINT" [195]OMMODORE [194]USINESS [205]ACHINES"
508 PRINT" 3370 [208]HARMACY [193]VE.
509 [153]" ATNGINCOURT, (null)NTARIO"
510 [153]" LENANADA (null)1(null) 2(null)4"
511 [153]" (416) 499-4292"
512 UP[178]1:[141] 835:[141] 850:
513 [153]" (null)ROGRAM (null)AME: ATNTARI RIGHT$RIGHT$
514 PRINT" [215]RITTEN [194]Y : [202]OE [195]ANNATA
515 [153]" (null)PGRADED PEEKY :
516 PRINT" [212]HIS PROGRAM WILL RUN ON ANY
519 [153]" (null)VAL(null) 64 LEN(null)(null)(null)(null)(null)VAL(null)
520 PRINT" [195][207][205][205][207][196][207][210][197] 64 [195][207][205][208][213][212][197][210]
521 [141]835
590 [139]UZ[178]1[167][158]UP%:[137]217
599 [142]
600 [143] ** PROGRAM MODIFICATION INST **
601 [153]"LOAD":[151]UT,UL%
605 UP[178]0:UG$[178]"(null)ROGRAM (null)OD":[141]850
660 [141]835
690 [139]UZ[178]1[167][158]UP%:[137]217
699 [142]
700 [143] ** TO USE 8032 LOAD CBM4032 **
710 [153]"LOADBEFORE RUNNING THIS PROGRAM ON AN 8032
720 PRINT" LOAD THE 'CBM 4032' PROGRAM"
730 SYSUU+71
740 END
800 REM ** T I T L E P A G E **
802 PRINT"[147]";:POKEUT,UU%:IFPEEK(50003)=0THENPOKE53280,14:POKE53281,6
804 FORI=1TO38:PRINT"[166][146]";:NEXT
806 FORI=1TO22:PRINT"[157][166][146]";:NEXT
808 FORI=1TO37:PRINT"[157][157][166][146]";:NEXT
810 FORI=1TO22:PRINT"[145][157][166][146]";:NEXT
812 PRINT"[169] [146]
814 [153]" WAIT WAITSTEP
816 PRINT" [146] [163][223]
818 [153]"(null) WAIT
820 PRINT"C O M M O D O R E
822 [153]"EDUCATIONAL
824 PRINT"SOFTWARE
826 [143] ** COMMODORE LOGO **
827 [153][200](UD$,24);"PRESS SPACE BAR OR WAITWAIT":I[178]0
828 [161]A$:[139]A$[179][177]" "[167]I[178]I[170]1:[139]I[179]250[167]828
830 T1$[178]"":T2$[178]"":T3$[178]"":T4$[178]"":I[178]0
832 [137]300
835 [143] ** SPACE BAR PRESS **
840 [151]UO,0:[153][200](UD$,24);"PRESS SPACE BAR TO CONTINUEWAIT"
844 [161]UI$:[139]UI$[179][177]" "[167]844
846 [142]
850 [143] ** PAGE DESIGN ROUTINE **
852 UP[178]UP[170]1
855 [153]"LOAD"[200](UT$[170]UP$,21);[201](UP$[170]UG$[170][196](UP),18)
860 [153]" --------------------------------------"
864 [139]UH[179][177]0[167]870
865 [153][200](UD$,24);[200](UP$,7);"HELP - PRESS H <RETURN>"
870 UH[178]0:[153]"":[142]
875 [143] ** PLEASE WAIT REMARK **
880 [153][200](UD$,24);" ONE MOMENT PLEASE... "
885 [142]
900 [143] ** SET UP VARIABLES **
901 UX$[178]"H":[134]UQ%(1000):UB[178]32768:U1[178]196:U2[178]197:U3[178]198:U4[178]216:UC[178]167:UU[178]1024
902 UT[178]59468:UU%[178]12:UL%[178]14:UP%[178]1146:UM[178]32768:UO[178]158:[151] 50003,0
903 [139][194](50003)[178]0[167]UB[178]1024:U1[178]209:U2[178]210:U3[178]211:U4[178]214:UC[178]204:UU[178]2048
904 [139][194](50003)[178]0[167]UT[178]53272:UU%[178]21:UL%[178]23:UP%[178]2139:UM[178]1024:UO[178]198
905 UD$[178]""
906 UP$[178]" "
907 UT$[178]" ATARI II CLOSECLOSECLOSECLOSE":[143] PLACE PROGRAM TITLE HERE !!!!!!!!!!!!!!!!!***
908 [142]
910 [143] ** SET VARIABLES **
915 [141]900
920 [143] ** CHECK FOR 8032 **
925 [153]"LOAD":[153]"CLOSE":[143] SHIFTED SPACE
930 [139][194](UB[170]40)[179][177]96[167][141]700
931 [143] ** MEMORY CHECK **
932 [139] [184](0)[177]2000[167]937
933 [153]"LOADTHIS MACHINE DOES NOT HAVE ENOUGH"
934 [153]"MEMORY TO RUN THIS PROGRAM !"
935 [158]UU[170]71
936 [128]
937 [153]"LOAD":[139][194](50003)[178]0[167]962
940 [143] ** BASIC 2.0 OR 4.0 OR C-64 SETUP **
941 [151]1075,133:[151]1076,144:[151]1077,234:[151]1079,4:[151]1080,133:[151]1081,145
942 [151]1091,155:[151]1098,133:[151]1099,144:[151]1100,234:[151]1103,133
943 [151]1104,145:[151]1105,234:[151]1082,234
945 [139][194](50003)[179][177]160[167]955
950 [151]1093,88:[151]1094,228:[151]1097,85:[151]1102,228:[137]965
955 [139][194](50003)[179][177]1[167]990
960 [151]1093,49:[151]1094,230:[151]1097,46:[151]1102,230:[137]965
962 [151]2099,141:[151]2100,20:[151]2101,3:[151]2103,8:[151]2104,141:[151]2105,21
963 [151]2106,3:[151]2115,145:[151]2117,52:[151]2118,234:[151]2121,49:[151]2122,141
964 [151]2123,20:[151]2124,3:[151]2126,234:[151]2127,141:[151]2128,21:[151]2129,3
965 [158]UU[170]48:[143] DISABLE STOP KEY
970 [141]800:[143] TITLE
980 [137]300:[143] MENU
990 [153]"LOADTHE PGM WILL NOT WORK ON THIS MACHINE!":[128]
1000 [139]UZ[178]1[167][158]UP%:[158]UP%:UZ[178]0:[143] ** PROGRAM STARTS HERE **
1001 [153]"LOAD";:[140]:[139][194](50003)[178]0[167][151]53281,6:[151]53280,14
1020 [143] BASED ON ATARI SOURCE UNKNOWN
1030 [143] WRITTEN BY JOE CANNATA
1040 [143] SMC MICROSYSTEMS
1050 [143] HAUPPAUGE, NY 11787
1060 [143]
1070 [153]"LOAD DO YOU WANT BARRIER ? ";
1071 US$[178]"YNH":UL[178]1:[141] 35:B$[178]UR$
1072 BB[178]0:[139][200](B$,1)[178]"Y"[167]BB[178]1
1073 [139] B$[178]"Y"[167] 1080
1074 [139] B$[178]"N" [167] 1080
1080 Y[178]0:U[178]0
1090 PP[178]5
1100 [139][194](50003)[178]0[167][151]53281,1:[153]"LOAD":[151]53281,6:[151]53280,14:[137]1110
1105 [153]"LOAD"
1110 M[178]65
1120 [153]"ORTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTAN^"
1130 [153]"";
1140 [129]Q[178]1[164]20:[153]"(null)CMDCMDCMD(null)":[130]Q
1150 [153]"/TANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANATNTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANTANEXP"
1160 [139]BB[178]1[167][141]2310
1170 Z[178]33667[171]32768[170]UM
1180 [140]
1190 [153]"";
1200 [129]A[178]1[164]8
1210 [135]A$(A)
1220 [135]A(A)
1230 [131]" (null)NEWNEWANDTO",250," >=(null)",550," >(null)(null)(null)",150," >-(null)",100," (null)=",50," '",0," >",25
1240 [131]" >*COS>",200
1250 [130]A
1260 [136]B[178][181]([187](1)[172]8)[170]1
1270 [139] B[179]1 [176] B[177]8 [167]1260
1280 [150][165]X(A)[178]A
1290 [153]" TORPEDOS READY":[153]"";
1300 [129]R[178]1[164]([181]([187](1)[172]15)[170]1):[153]"";:[130]R
1310 T[178]0
1320 [139]BB[178]1[175]R[177]11[167][153]"";
1330 T[178]T[170][181]([187](1)[172]15)
1340 T[178]T[170]1
1350 [139]T[178]35[167]2150
1360 [153][163]T)A$(B):[153]"ON";
1370 Y[178]Y[170]1:[139]Y[178]550[167]1640
1380 [161]C$
1390 [139]C$[178]"7"[167][150][165]X(A)[178]A[171]41:M[178]77
1400 [139]C$[178]"8"[167][150][165]X(A)[178]A[171]40:M[178]93
1410 [139]C$[178]"9"[167][150][165]X(A)[178]A[171]39:M[178]78
1420 [139]PP[179]1[167]1450
1430 [139]C$[178]"P"[175]B[178]6[167]1450
1440 [139]C$[178]"P"[167]2160
1450 U[178]U[170]1:[139]U[178]550[167]1640
1460 [151]Z,32
1470 Z[178][165]X(Z)
1480 [139][194](Z)[179][177]32[167]1520
1490 [151]Z,M
1500 [139]T[178]35[167]1100
1510 [137]1340
1520 X[178][194](Z)
1522 [139]X[178]93[176]X[178]112[176]X[178]64[176]X[178]103[176]X[178]77[176]X[178]78[167]1630
1530 [151]Z,42
1540 [129]I[178]1[164]3:[151]59409,52:[129]O[178]1[164]50:[130]O:[151]59409,60:[129]O[178]1[164]50:[130]O:[130]I
1550 S[178]S[170](300[171]A(B))
1560 [139][194](50003)[178]0[167][151]53281,1:[153]"LOAD";:[151]53281,6:[151]53280,14:[137]1567
1565 [153]"LOAD";
1567 [153]" "A$(B)" "[163]25);[202]([196](300[171]A(B)),2)
1570 [153]" STAR SCORE "S
1580 [153]" PLASMA BOMBS"PP
1590 [153]" TIME LEFT "550[171]Y
1600 [141]835
1610 [151]UO,0
1620 [137]1100
1630 [153][200](UD$,24)[200](UP$,17)"MISSED":[129]E[178]1[164]500:[130]E:[151]UO,0:[137]1100
1640 [153]"LOAD";" GAME OVER"
1650 [153]" STAR SCORE ="S
1660 [141]2190
1670 [153]" "FF$
1680 S[178]0
1690 [153]" TYPE Y FOR ANOTHER GAME: ";
1695 US$[178]"YN":UL[178]1:[141] 35:Q$[178]UR$
1696 [139] UR$[178]"Y"[167] 1070
1700 [151]UO,0
1720 [137]395
2150 [153][200](UD$,24)" OUT OF RANGE":[129]CC[178]1[164]250:[130]CC:[137]1100
2160 [129]LL[178]1[164]50:[151]59409,52:[151]59409,60:[130]LL
2170 PP[178]PP[171]1
2180 [137]1550
2190 [136]NN[178][182](S[173]500)
2200 [145]NN[141]2220,2230,2240,2250,2260,2270,2280,2290,2290,2300
2210 [142]
2220 FF$[178]"GIVE IT UP":[142]
2230 FF$[178]"BETTER LUCK NEXT TIME":[142]
2240 FF$[178]"GIVE IT ANOTHER TRY":[142]
2250 FF$[178]"DON'T BRAG ABOUT IT":[142]
2260 FF$[178]"PRETTY GOOD":[142]
2270 FF$[178]"WHAT A SHOOTER":[142]
2280 FF$[178]"YOU MUST BE AN EXPERT":[142]
2290 FF$[178]"YOU'RE THE BEST!":[142]
2300 FF$[178]"YOU'RE RULER OF THE UNIVERSE":[142]
2310 [136]YY[178][187](1):[139]YY[179][178].5[167]2330
2320 [153]"(null)(null)CMDCMDCMD(null)(null)(null)(null)CMDCMDCMDCMD(null)(null)(null)(null)CMDCMDCMD(null)(null)":[142]
2330 [153]"";
2340 [153]"(null)(null) (null)(null)CMDCMDCMDCMDCMDCMDCMDCMDCMDCMD(null)(null)(null)(null) (null)(null)(null)(null)"
2350 [142]